<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
  <head>
    <title>Administer the Bookstore</title>
    <%= stylesheet_link_tag "scaffold", "depot", "will_paginate", :media => "all" %>
    <%= javascript_include_tag :fckeditor, :defaults %>
    
  </head>
  <body id="admin">
    <div id="banner">
      <img src="/images/logo.png"/>
      <%= @page_title || "Eros-Blog Admin" %>
      <% unless @blog.nil? %>
      <div id="tabsC">
        <ul>
          <li><%= link_to "<span>Post</span>", {:controller => :entry, :action => :list}, {:title => "Post"} %></li>
          <li><%= link_to "<span>Link</span>", {:controller => :link, :action => :list}, {:title => "Link"} %></li>
          <li><%= link_to "<span>Block</span>", {:controller => :block, :action => :list}, {:title => "Block"} %></li>
          <li><%= link_to "<span>Setting</span>", {:controller => :setting, :action => :update}, {:title => "Setting"} %></li>
          <li><%= link_to "<span>Profile</span>", {:controller => :profile, :action => :update}, {:title => "Profile"} %></li>
          <li><%= link_to "<span>My Site</span>", {:controller => "/u/#{@user.name}", :action => :index}, {:title => "My Blog"} %></li>
          <li><%= link_to "<span>Logout</span>", {:controller => "/user", :action => :logout}, {:title => "Logout"} %></li>
        </ul>
      </div>
    <% end %>
    </div>
    
    
    <div id="columns">
      <div id="side">
      <%= yield :siderbar %>
      </div>
      <div id="main">
      <% if flash[:notice] -%>
        <div id="notice"><%= flash[:notice] %></div>
      <% end -%>
      <%= yield :layout %>
      </div>
    </div>
  </body>
</html>